//package com.jews.example.demo.controller;
//
//import com.jews.common.model.JsonObject;
//import com.jews.example.demo.domain.mongouser.GroceryItem;
//import com.jews.example.demo.domain.mongouser.ItemRepository;
//import lombok.RequiredArgsConstructor;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
///**
// * @author JewsChen
// * @title: TestController
// * @date 2022/11/30 11:34
// */
//@RestController
//@Slf4j
//@RequestMapping("test/v1")
//@RequiredArgsConstructor
//public class TestController {
//    private final ItemRepository repository;
//
//    @PostMapping("createUserAccount")
//    public JsonObject createUser() {
//        System.out.println("Data creation started...");
//        repository.save(new GroceryItem( "Whole Wheat Biscuit", 5, "snacks"));
//        repository.save(new GroceryItem("XYZ Kodo Millet healthy", 2, "millets"));
//        repository.save(new GroceryItem( "Dried Whole Red Chilli", 2, "spices"));
//        repository.save(new GroceryItem( "Healthy Pearl Millet", 1, "millets"));
//        repository.save(new GroceryItem("Bonny Cheese Crackers Plain", 6, "snacks"));
//        System.out.println("Data creation complete...");
//        return JsonObject.success();
//    }
//}
